import request from '@/utils/request'


// 查询list
export function listChargePile(query) {
  return request({
    url: '/charge-pile/listChargePile',
    method: 'get',
    params: query
  })
}

// 查询设备编号
export function listRepairPileNumber() {
  return request({
    url: '/charge-pile/listRepairPileNumber',
    method: 'get',
  })
}
// 查询设备编号
export function listChargeRecordsPileNumber() {
  return request({
    url: '/charge-pile/listChargeRecordsPileNumber',
    method: 'get',
  })
}


// 查询充电桩详细
export function getChargePile(chargePileId) {
  return request({
    url: '/charge-pile/getChargePile/' + chargePileId,
    method: 'get'
  })
}

// 判断充电桩能否删除
export function checkIsDel(chargePileId) {
  return request({
    url: '/charge-pile/checkIsDel/' + chargePileId,
    method: 'get'
  })
}

// 新增充电桩
export function addChargePile(chargePile) {
  return request({
    url: '/charge-pile/addChargePile',
    method: 'post',
    data: chargePile
  })
}

// 修改竖井设备
export function updateChargePile(chargePile) {
  return request({
    url: '/charge-pile/updateChargePile',
    method: 'post',
    data: chargePile
  })
}

// 删除充电桩
export function delChargePile(chargePileIds) {
  return request({
    url: '/charge-pile/delChargePile/' + chargePileIds,
    method: 'post'
  })
}
